package com.alibaba.citrus.cr.platform.enhance.facade.service.migration;

import java.util.List;

import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;
import com.alibaba.lattice2.epoch.sdk.model.Result;

import com.epoch.app.crplatformenhance.dto.request.CreateScItemUnitRequest;
import com.epoch.app.crplatformenhance.dto.request.IdQueryRequest;
import com.epoch.app.crplatformenhance.dto.request.QueryScItemUnitRequest;
import com.epoch.app.crplatformenhance.dto.response.ScItemUnitResponse;

/**
 * @author zls
 * @description: TODO
 * @date 2021/9/10 18:46
 */
@MeshFlowService(apps = {"bc_order"}, name="scItemUnitMeshFlowService")
public interface ScItemUnitMeshFlowService {
    /**
     * 创建单位库
     * @param request
     * @return
     */
    Result<String> createScItemUnit(CreateScItemUnitRequest request);

    /**
     * 根据id查询单位库
     * @param request
     * @return
     */
    Result<ScItemUnitResponse> getScItemUnit(IdQueryRequest request);

    /**
     * 分页查询单位库列表
     * @param request
     * @return
     */
    Result<PageResult<List<ScItemUnitResponse>>> pageQueryScItemUnitList(QueryScItemUnitRequest request);
}
